include_directories(.)

AddLibrary(Core
	Core/Color.h
	Core/Core.h
	Core/Framework.h
	Core/IKeyboardListener.h
	Core/IMouseListener.h
	Core/Keyboard.h
	Core/KeyboardKey.h
	Core/Material.h
	Core/Mouse.h
	Core/MouseButton.h
	Core/Point.h
	Core/Renderer.h
	Core/Size.h
	Core/Window.h
	Core/WindowListener.h
	Core/Color.cpp
	Core/Framework.cpp
	Core/Keyboard.cpp
	Core/Material.cpp
	Core/Mouse.cpp
	Core/Point.cpp
	Core/Renderer.cpp
	Core/Size.cpp
	Core/Window.cpp
	Core/WindowListener.cpp)

if(WIN32)
	set(LibOpenGL "opengl32.lib")
	set(LibGLFW "glfw.lib")
else()
	set(LibOpenGL "-lGL")
	set(LibGLFW "-lglfw")
endif()

TargetLinkLibraries(Core
	Common
	${LibGLFW}
	${LibOpenGL}
)
